﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VietThinks.Model;

namespace VietThinks.Mapping.Maps
{
    public class DeniedRightMap : DomainEntityMap<DeniedRight>
    {
        public DeniedRightMap()
        {
            Schema("Admin");
            Table("DeniedRight");
            Map(m => m.CreatedDate);
            Map(m => m.ModifiedDate);

            References(m => m.Account, "AccountId");
            References(m => m.Right, "RightId");
            //HasMany(m => m.Rights)
            //    .KeyColumn("RightId")
            //    .Access.CamelCaseField()
            //    .Cascade.AllDeleteOrphan();
        }
    }
}
